package com.ruoyi.project.medicinal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class StockMedicines extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long medicinesId;
    private String medicinesNumber;//药品编号
    private String medicinesName;//药品名称
    private String medicinesType;//药品分类
    private String prescriptionType;//处方类型
    private Double prescriptionPrice;//处方价格
    private String unit;//单位(g/条)
    private Integer conversion;//换算量
    private String producterId;//生产厂家ID
    private Double medicinesStockNum;//库存量
    private Double medicinesStockDangerNum;//预警值
    private String keywords;//关键字
    private String status;//药品状态
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;//更新时间
    private String createBy;//创建人
    private String updateBy;//更新人
    private String delFlag;//删除状态
    private SyshisDictData syshisDictData;
}
